package com.wuuxiang.i5xforyou.vo.kanjia;

import java.math.BigDecimal;
import java.util.List;

import com.wuuxiang.i5xforyou.utils.MoneyFormatUtil;
import com.wuuxiang.i5xforyou.vo.coupon.ShopInfo;

/** 
 * @ClassName: Coupon <br/>
 * 砍价卷bean <br/>
 * @author Mobile Web Group-lff
 * @date 2018年3月15日 下午5:00:18
 *
 */
public class Coupon {
	private Integer id;//券id
	private Integer couponId;//券类型id
	private Integer couponAmount;//可领,可购买的券数量
	private String description;//优惠券说明
	private Integer expiryType;//有效期类型:0固定有效期，1相对有效期
	private Integer expiryDays;//有效期天数
	private Integer afterDays;//领取后第N天生效
	private String expiryStart;//优惠券有效期开始日期
	private String expiryEnd;//优惠券有效期结束日期
	private Integer grossNum;//优惠券已领取数量
	private Integer stockNum;//优惠券库存数量
	private Integer surplus;//剩余库存
	private BigDecimal threshold;//消费门槛
	private String title;//券标题
	private Integer type;//优惠券类型(0:全部 1:代金券 2:折扣券 3:品项券)
	private String value;//代金券面值
	private Integer valueType;//券金额类型(0固定金额，1随机金额)
	private Integer isBuy;//是否购买(0:否,1:是)
	private BigDecimal money;//购买金额
	private Integer couponStockWarning;//券库存预警
	private BigDecimal couponMinMoney;//券最低金额
	private BigDecimal firstCutMoney;//第一刀砍掉价格
	private Integer count;//张数
	private Integer useSubShopLimit = 1;//适用门店限制(0:无限制,1:有限制)
	private List<ShopInfo> subShopList;//适用门店列表
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getCouponId() {
		return couponId;
	}
	public void setCouponId(Integer couponId) {
		this.couponId = couponId;
	}
	public Integer getCouponAmount() {
		return couponAmount;
	}
	public void setCouponAmount(Integer couponAmount) {
		this.couponAmount = couponAmount;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Integer getExpiryType() {
		return expiryType;
	}
	public void setExpiryType(Integer expiryType) {
		this.expiryType = expiryType;
	}
	public Integer getExpiryDays() {
		return expiryDays;
	}
	public void setExpiryDays(Integer expiryDays) {
		this.expiryDays = expiryDays;
	}
	public Integer getAfterDays() {
		return afterDays;
	}
	public void setAfterDays(Integer afterDays) {
		this.afterDays = afterDays;
	}
	public String getExpiryStart() {
		return expiryStart;
	}
	public void setExpiryStart(String expiryStart) {
		this.expiryStart = expiryStart;
	}
	public String getExpiryEnd() {
		return expiryEnd;
	}
	public void setExpiryEnd(String expiryEnd) {
		this.expiryEnd = expiryEnd;
	}
	public Integer getGrossNum() {
		return grossNum;
	}
	public void setGrossNum(Integer grossNum) {
		this.grossNum = grossNum;
	}
	public Integer getStockNum() {
		return stockNum;
	}
	public void setStockNum(Integer stockNum) {
		this.stockNum = stockNum;
	}
	public Integer getSurplus() {
		return surplus;
	}
	public void setSurplus(Integer surplus) {
		this.surplus = surplus;
	}
	public BigDecimal getThreshold() {
		return threshold;
	}
	public void setThreshold(BigDecimal threshold) {
		this.threshold = threshold;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = MoneyFormatUtil.format(value, "0");
	}
	public Integer getValueType() {
		return valueType;
	}
	public void setValueType(Integer valueType) {
		this.valueType = valueType;
	}
	public Integer getIsBuy() {
		return isBuy;
	}
	public void setIsBuy(Integer isBuy) {
		this.isBuy = isBuy;
	}
	public BigDecimal getMoney() {
		return money;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}
	public Integer getCouponStockWarning() {
		return couponStockWarning;
	}
	public void setCouponStockWarning(Integer couponStockWarning) {
		this.couponStockWarning = couponStockWarning;
	}
	public BigDecimal getCouponMinMoney() {
		return couponMinMoney;
	}
	public void setCouponMinMoney(BigDecimal couponMinMoney) {
		this.couponMinMoney = couponMinMoney;
	}
	public BigDecimal getFirstCutMoney() {
		return firstCutMoney;
	}
	public void setFirstCutMoney(BigDecimal firstCutMoney) {
		this.firstCutMoney = firstCutMoney;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public Integer getUseSubShopLimit() {
		return useSubShopLimit;
	}
	public void setUseSubShopLimit(Integer useSubShopLimit) {
		this.useSubShopLimit = useSubShopLimit;
	}
	public List<ShopInfo> getSubShopList() {
		return subShopList;
	}
	public void setSubShopList(List<ShopInfo> subShopList) {
		this.subShopList = subShopList;
	}
	
}
